package com.tf.mxj.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

@Data
@TableName("activity")
public class Activity {
    @TableId(type = IdType.AUTO)  // 关键：主键自增
    private Long id;

    private String name;
    private String type;
    private String coverUrl;
    private Date date;

    @TableField(value = "`desc`")
    private String desc;

    private String status;
    private Date createdAt;
    private Date updatedAt;
}
